package com.chagee.store.operation.server.service.base;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chagee.store.operation.server.entity.StoreOrderDeviceDO;
import com.chagee.store.operation.server.event.dao.StoreOrderDeviceMapper;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName StoreWorkOrderEquipmentBaseService  //类名称
 * @Description: 类描述
 * @Author: Jacky-zhan	//作者
 * @CreateDate: 2024/3/29 13:46	//创建时间
 * @UpdateUser: Jacky-zhan
 * @UpdateDate: 2024/3/29 13:46	//更新时间
 * @UpdateRemark: 更新的信息
 * @Version: 1.0    //版本号
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class WorkOrderDeviceBaseService extends ServiceImpl<StoreOrderDeviceMapper, StoreOrderDeviceDO> {

	@Resource
	private StoreOrderDeviceMapper storeWorkOrderDeviceMapper;

	/**
	 * 查询门店下的未过期的工单编码对用的设备信息
	 *
	 * @param workOrderNumber 工单编码
	 * @return list
	 */
	public List<StoreOrderDeviceDO> getDeviceList(String workOrderNumber) {
		return storeWorkOrderDeviceMapper.getDeviceList(workOrderNumber);
	}
}
